{extend name="admin@index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-header">添加广告位</div>
    <div class="layui-card-body">
        <form class="layui-form form-horizontal" action="" method="post">
            <div class="layui-form-item">
                <label>广告位名称</label>
                <div class="w300">
                    <input type="text" name="title" autocomplete="off" placeholder="广告位名称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label>广告位英文名称</label>
                <div class="w300">
                    <input type="text" name="name" autocomplete="off" placeholder="广告位英文名称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label>广告位宽度</label>
                <div class="w300">
                    <input type="text" name="ad_width" autocomplete="off" placeholder="广告位宽度 例如：1920" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label>广告位高度</label>
                <div class="w300">
                    <input type="text" name="ad_height" autocomplete="off" placeholder="广告位高度 例如：600" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item web_seo">
                <label>广告位模板</label>
                <div class="w300">
                    <textarea name="position_style" placeholder="广告位模板" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item web_seo">
                <label>广告位描述</label>
                <div class="w300">
                    <textarea name="position_desc" placeholder="广告位描述" class="layui-textarea"></textarea>
                </div>
            </div>



            <div class="layui-form-item">
                <label>排序</label>
                <div class="w300">
                    <input type="number" name="listorder" autocomplete="off" placeholder="排序" class="layui-input" value="100">
                </div>
            </div>
            <div class="layui-form-item">
                <label>是否显示</label>
                <div class="w300">
                    <input type="radio" name="is_show" value="1" checked title="开启" lay-filter="is_show">
                    <input type="radio" name="is_show" value="0" title="禁用" lay-filter="is_show">
                </div>
            </div>
    <!--        <div class="layui-form-item layui-form-text">
                <label>pc广告图片</label>
                <div class="layui-form-field-label">
                    <div class="js-upload-image">
                        {php}echo \util\Form::images('thumb'){/php}
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label>手机广告图片</label>
                <div class="layui-form-field-label">
                    <div class="js-upload-image">
                        {php}echo \util\Form::images('m_thumb'){/php}
                    </div>
                </div>
            </div>-->
            <div class="layui-form-item">
                <div>
                    <button class="layui-btn ajax-post" lay-submit lay-filter="*" target-form="form-horizontal">立即提交</button>
                    <button class="layui-btn layui-btn-normal" onclick="javascript :history.back(-1);">返回</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
<script type="text/javascript" src="__STATIC__/libs/viewer/viewer.min.js"></script>
<link rel="stylesheet" href="__STATIC__/libs/viewer/viewer.min.css">
<script type="text/javascript">
$('.uploader-list').each(function () {
    $(this).viewer();
});
</script>
{/block}